package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.JiajiaOrderTime;
import com.ruoyi.system.mapper.JiajiaOrderTimeMapper;
import com.ruoyi.system.service.IJiajiaOrderTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单Service业务层处理
 *
 * @author mrwang
 * @date 2024-04-24
 */
@Service
public class JiajiaOrderTimeServiceImpl implements IJiajiaOrderTimeService
{
    @Autowired
    private JiajiaOrderTimeMapper jiajiaOrderTimeMapper;

    @Override
    public JiajiaOrderTime selectJiajiaOrderTimeById(Long id) {
        return jiajiaOrderTimeMapper.selectJiajiaOrderTimeById(id);
    }

    @Override
    public List<JiajiaOrderTime> selectJiajiaOrderTimeList(JiajiaOrderTime jiajiaOrderTime) {
        return jiajiaOrderTimeMapper.selectJiajiaOrderTimeList(jiajiaOrderTime);
    }

    @Override
    public int insertJiajiaOrderTime(JiajiaOrderTime jiajiaOrderTime) {
        return jiajiaOrderTimeMapper.insertJiajiaOrderTime(jiajiaOrderTime);
    }

    @Override
    public int updateJiajiaOrderTime(JiajiaOrderTime jiajiaOrderTime) {
        return jiajiaOrderTimeMapper.updateJiajiaOrderTime(jiajiaOrderTime);
    }

    @Override
    public int deleteJiajiaOrderTimeByIds(String ids) {
        return jiajiaOrderTimeMapper.deleteJiajiaOrderTimeByIds(Convert.toStrArray(ids));
    }

    @Override
    public int deleteJiajiaOrderTimeById(Long id) {
        return jiajiaOrderTimeMapper.deleteJiajiaOrderTimeById(id);
    }

    @Override
    public List<JiajiaOrderTime> selectList(String orderSn) {
        return jiajiaOrderTimeMapper.selectList(orderSn);
    }
}
